package org.enlongWu.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.enlongWu.pojo.Application;
import org.enlongWu.pojo.ApplicationState;
import org.enlongWu.pojo.Message;
import org.enlongWu.pojo.Result;

import java.util.List;

@Mapper
public interface ApplicationMapper {

    List<ApplicationState> list();

    Application searchById(Integer applicationId);

    int updateState(Integer applicationId, String toState);

    int insertApplication(Application application);


    List<Application> applicationListByIdList(List<Integer> ids);

    @Delete("delete from application where id=#{id}")
    int deleteById(Integer id);
}
